#include <iostream>
#include <vector>
#include <map>
using namespace std;

int main()
{
	// C++17 结构化绑定
	map<int, string> people = { {1, "Alice"}, {2, "Bob"}, {3, "Charlie"} };
	for (const auto& [id, name] : people) {
		cout << "ID: " << id << ", Name: " << name << endl;
	}

	system("pause");
	return 0;
}